package cn.com.taurus.biz;

import cn.com.taurus.entity.AdminLog;
import cn.com.taurus.entity.Diary;
import cn.com.taurus.impl.DiaryServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DiaryBiz {

    @Autowired
    DiaryServiceImpl diaryServiceImpl;

    public Integer insertLog(Diary diary) {
        return diaryServiceImpl.insertLog(diary);
    }

    public List<Diary> queryAllDiary(){
        return diaryServiceImpl.queryAllDiary();
    }

    public List<Diary> selectDiary(Diary diary){
        return diaryServiceImpl.selectDiary(diary);
    }

    public int deleteDiary(int id){
        return diaryServiceImpl.deleteDiary(id);
    }
}
